package com.kkyy.findmusic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kkyy.findmusic.entity.PlayListsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface PlayListsDao extends BaseMapper<PlayListsEntity> {
    List<PlayListsEntity> selectByStatus();

    void updatePlayListStatus(Integer id);

    void downPlaylistsById(Integer id);

    void upPlaylistsById(Integer id);

    List<PlayListsEntity> selectByStatus2();

    void insertPlaylist(
            @Param("copywriter") String copywriter,
            @Param("picurl") String picurl,
            @Param("playlistname") String playlistname,
            @Param("location") BigInteger location);
}